﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:WtfManager.Controls" xmlns:AvalonDock="clr-namespace:AvalonDock;assembly=AvalonDock">

  <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type Controls:GenericView}, ResourceId=genericView}"
      TargetType="{x:Type ListView}" BasedOn="{StaticResource {x:Type ListBox}}">

    <Setter Property="ItemContainerStyle" Value="{Binding (ListView.View).ItemContainerStyle,
            RelativeSource={RelativeSource Self}}" />

    <Setter Property="ItemTemplate" Value="{Binding (ListView.View).ItemTemplate,
            RelativeSource={RelativeSource Self}}" />

    <Setter Property="ItemsPanel" Value="{Binding (ListView.View).ItemsPanel,
            RelativeSource={RelativeSource Self}}" />

  </Style>


</ResourceDictionary>